package com.bingbing.back.mapper;

import com.bingbing.back.dto.SchoolMajorScoreDto;
import com.bingbing.back.po.SchoolMajorScore;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SchoolMajorScoreMapper {

    // 根据学校id和年份查询所有录取批次
    List<String> showBatch(int schoolId, int admYear);


    /**
     * 返回查询的最低分，最低位次，选课要求
     * @param schoolMajorScore 必须包含学校schoolId，和招生年份admYear，可加上录取批次admMajorBatch
     * @return
     */
    List<SchoolMajorScoreDto> showMajorScore(SchoolMajorScore schoolMajorScore);

    /**
     * 根据提供信息，返回相应分数的专业
     * @param schoolId
     * @param admYear
     * @param stuScore
     * @return
     */
    List<String> searchByInfo(int schoolId, int admYear, int stuScore);
}
